/**
 * 处理用户相关的逻辑
 */
import user from '@/api/user'

export function queryUserByPaging(page, size, condition) {

    return user.queryUserByPaging(page, size, condition)
}

export function loadUserRoles(page, size,userId, condition) {

    return user.loadUserRoles(page, size, userId,condition)
}

export function deleteUserById(id) {

    return user.deleteUserById(id)

}

export function saveOrUpdateUser(formArgs) {

    return user.saveOrUpdateUser(formArgs)

}

export function listAllAvailableRoles() {

    return user.listAllAvailableRoles()
}

export function addUserRole(userId,role) {

    return user.addUserRole(userId,role)
}


export function delUserRole(userId,roleId) {

    return user.delUserRole(userId,roleId)
}
